{textarea} smarty php

Posted by Kyle Sevenoaks on Stack Overflow See other posts from Stack Overflow or by Kyle Sevenoaks
Published on 2010-05-07T12:14:31Z Indexed on 2010/05/07 12:18 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

Hi, further to a previous question, I have this code:

{textarea onblur="if(this.value=='') this.value='Skriv her';" onfocus="if(this.value=='Skriv her') this.value='';"}

And I want the output to be

<textarea onblur="if(this.value=='') this.value='Skriv her';" onfocus="if(this.value=='Skriv her') this.value='';">Write here!</textarea>

I tried [/textarea} but it didn't work in my template file.

Is it possible to make this in smarty/php?

Thanks :)

© Stack Overflow or respective owner

Related posts about smarty

Related posts about textarea